import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import messagepasser.DocInfo;
import messagepasser.UserInfo;

public interface Server extends Remote{
	public UserInfo login (String user, String password) throws RemoteException;
	public List<DocInfo> getDocuments (int userId)  throws RemoteException;
	public UserInfo[] getonlineUsers (int userId)  throws RemoteException;
	public void register (Client c) throws RemoteException;
}
